package cn.lingyangwl.agile.misc.statistic.model.rqrs;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 统计服务
 *
 * @author shenguangyang
 */
@Getter
@Setter
@ApiModel(value = "统计访问次数")
public class StatAccessResp {
	@ApiModelProperty(value = "访问成功数量")
	private Long successCount;

	@ApiModelProperty(value = "访问失败数量")
	private Long failCount;

	@ApiModelProperty(value = "统计日期")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date statDate;

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createdAt;

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updatedAt;
}
